package com.example.jpetstoreclient.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "history", autoResultMap = true)
public class History {
    private int user_id;
    private int animal_id;
    private String time;

    @TableId(type = IdType.AUTO)
    private int history_id;

    @TableField(exist = false)
    private Animal animal;
}
